import { Sequelize } from 'sequelize';
import { config } from "../config";
const {
    SQL: {
        host,
        port,
        password,
        user,
        name,
        dialect
    }
} = config
export const sequelize = new Sequelize(name, user, password, {
    logging: false,
    dialect,
    host,
    port,
    timezone: '+08:00',
    dialectOptions: {
        dateStrings: true,
        typeCast: true
    },
    define: {

    }
});